package com.xxhis.refactor.scan
/**
 * Author: mp2
 * Date: 2021/4/17 16:30
 * Describe:扫描二维码广播filter
 */
class ScanAction {
    companion object {
        //<action,key>不同的pda的action不一样，获取通知后读取数据的key也不一样
        val scanActionMap = mapOf<String, String>(
                "oem.android.bcr.ACTION_FEEDBACK" to "android.intent.extra.TEXT",
                "com.barcode.sendBroadcast" to "BARCODE",
                "com.sim.action.SIMSCAN" to "value",
                "cs2c.com.cn.serialscan" to "serial",
                "com.xxhis" to "com.motorolasolutions.emdk.datawedge.data_string",
                "lachesis_barcode_value_notice_broadcast" to "lachesis_barcode_value_notice_broadcast_data_string",
                "action.broadcast.smartshell.data" to "smartshell_data",
                "SYSTEM_BAR_READ" to "BAR_VALUE",
                "com.neusoft.action.scanner.read" to "scanner_value",
                "android.intent.action.SCANRESULT" to "value",
                "com.android.server.scannerservice.broadcast" to "scannerdata",
                "com.symbol.mybroadcast" to "scanner_data",
                "android.provider.sdlMessage" to "msg",
                "com.scanner.broadcast" to "data",
                "nlscan.action.SCANNER_RESULT" to "SCAN_BARCODE1",
                "com.android.action.BARCODE" to "data",
                "com.honeywell.decode.intent.action.EDIT_DATA" to "data",
                "com.honeywell.scan.broadcast" to "data",
                "android.intent.ACTION_SCAN_OUTPUT" to "data",
                "com.android.decodewedge.decode_action" to "com.android.decode.intentwedge.barcode_string",
                "com.honeywell.broadcast" to "data",
                "com.ge.action.barscan" to "value",
                "com.android.scanner.broadcast" to "scandata",
                "com.android.scanner.service_settings" to "scannerdata",
                "com.android.server.scannerservice.broadcast" to "scannerdata",
                "com.superlead.decode.action" to "result"
        )
        //<action,key>不同的pda的action不一样，获取通知后读取数据的key也不一样
        val scanFilterAction =  "COM.XHIS.NURSEWORKSTATION_SCANINFO"
        val scanFilterKey =  "SCANINFO"
    }

}